<template>
  <!-- 图例 -->
  <div class="metric-legend noselect qs-legend">
    <span style="width:16.6%">Degrade(%)</span><span style="width: 16.6%">0</span><span style="width: 16.6%">10</span><span
    style="width: 16.6%">30</span><span style="width: 16.6%">50</span><span style="width: 16.6%">&gt;50</span>
  </div>
</template>

<script>
export default {
  name: 'GradeLegend'
}
</script>

<style scoped>
  .metric-legend {
    background-color: #7c7c7c;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 0 4px 0 black;
  }

  .metric-legend span {
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle
  }

  .noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
  }

  .qs-legend {
    color: white;
    background: rgba(0, 0, 0, 0) linear-gradient(to right,
    rgb(167, 211, 33),
    rgb(167, 211, 33),
    rgb(167, 211, 33),
    rgb(216, 215, 47),
    rgb(204, 190, 35),
    rgb(186, 150, 45),
    rgb(197, 148, 47),
    rgb(140, 103, 43),
    rgb(146, 72, 47),
    rgb(171, 68, 21),
    rgb(223, 67, 98),
    rgb(243, 59, 145),
    rgb(236, 21, 177),
    rgb(190, 17, 173),
    rgb(190, 17, 173)) repeat scroll 0% 0%;
  }
</style>
